package com.ruoyi.auth.service;

import com.ruoyi.auth.utils.SmsSender;
import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.system.api.domain.SysUser;
import org.springframework.stereotype.Component;

@Component
public class SmsService {

    public boolean sendSms(String phone, String code) {
        try {
            SmsSender.sendSms(phone,code);
            return true;
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }


    }

}
